package edu.pinkhub.shiro_test.controller;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

//import org.apache.shiro.authz.annotation.RequiresPermissions;
import edu.pinkhub.shiro_test.entity.Menus;
import edu.pinkhub.shiro_test.service.MenusService;
import edu.pinkhub.shiro_test.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.http.HttpMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;





/**
 * 
 *
 * @author zhangsan
 * @email qis@gmail.com
 * @date 2022-06-28 14:18:49
 */
@RestController
@RequestMapping("/menus")
public class MenusController {
    @Autowired
    private MenusService menusService;

    /**
     * 列表
     */
    @RequestMapping(value = "/list")
    //@RequiresPermissions("user:users:list")
    public List<Menus> list(){
        return menusService.findParenMenu(0);
    }


}
